<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Localidata</title>
	<atom:link href="https://www.localidata.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.localidata.com</link>
	<description></description>
	<lastBuildDate>Wed, 30 May 2018 13:45:17 +0000</lastBuildDate>
	<language>es</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.1</generator>
	<item>
		<title>Cómo actualizar recursos de CKAN a través de Pentaho Data Integration</title>
		<link>https://www.localidata.com/como-actualizar-recursos-de-ckan-a-traves-de-pentaho-data-integration/</link>
		
		<dc:creator><![CDATA[Juan Carlos Ballesteros]]></dc:creator>
		<pubDate>Mon, 17 Jul 2017 10:35:00 +0000</pubDate>
				<category><![CDATA[CKAN]]></category>
		<category><![CDATA[PENTAHO]]></category>
		<guid isPermaLink="false"></guid>

					<description><![CDATA[<p>&#160; Hace unos días Esther(@eminguelac)  encontró un plugin para Pentaho (Kettle) que permitia escribir directamente en el Datastore de CKAN (https://github.com/OpenGov-OpenData/CKAN-DataStore-Writer-for-Pentaho-Data-Integration). Esta funcionalidad no se ajustaba a nuestras necesidades y hemos decidido modificarlo un poco y compartirlo con la comunidad. &#160; Nuestra idea es conseguir que el nuevo plugin actualice el recurso de un Dataset [&#8230;]</p>
<p>La entrada <a rel="nofollow" href="https://www.localidata.com/como-actualizar-recursos-de-ckan-a-traves-de-pentaho-data-integration/">Cómo actualizar recursos de CKAN a través de Pentaho Data Integration</a> se publicó primero en <a rel="nofollow" href="https://www.localidata.com">Localidata</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="clear: both;text-align: center"><a style="margin-left: 1em;margin-right: 1em" href="https://www.localidata.com/wp-content/uploads/2017/07/PentahoTalksCKAN.png"><img loading="lazy" src="https://www.localidata.com/wp-content/uploads/2017/07/PentahoTalksCKAN-300x92.png" width="320" height="97" border="0" /></a></div>
<p>&nbsp;</p>
<div style="text-align: justify">Hace unos días Esther(<a href="https://twitter.com/eminguelac" target="_blank" rel="noopener">@eminguelac</a>)  encontró un plugin para Pentaho (Kettle) que permitia escribir directamente en el Datastore de CKAN (<a href="https://github.com/OpenGov-OpenData/CKAN-DataStore-Writer-for-Pentaho-Data-Integration" target="_blank" rel="noopener">https://github.com/OpenGov-OpenData/CKAN-DataStore-Writer-for-Pentaho-Data-Integration</a>). Esta funcionalidad no se ajustaba a nuestras necesidades y hemos decidido modificarlo un poco y compartirlo con la comunidad.</div>
<p>&nbsp;</p>
<div style="text-align: justify">Nuestra idea es conseguir que el nuevo plugin actualice el recurso de un Dataset en CKAN a partir de los datos de entrada que recibe.</div>
<p>&nbsp;</p>
<div style="text-align: justify"> El repositorio con el plugin y el código se encuentra en esta URL:<a href="https://github.com/localidata/CKAN-Resource-Updater-for-Pentaho-Data-Integration" target="_blank" rel="noopener"> https://github.com/localidata/CKAN-Resource-Updater-for-Pentaho-Data-Integration</a></div>
<p>&nbsp;</p>
<div style="text-align: justify">La instalación es muy sencilla, sólo hay que copiar al directorio &#8220;<b>../data-integration/plugins/steps</b>&#8221; la carpeta &#8220;<b>ckan-updater-plugin</b>&#8220;. Si el subdirectorio &#8220;<b>steps</b>&#8221; no existe, hay que crearlo. Después reiniciamos Pentaho y si al hacer un Trabajo (&#8220;Job&#8221;) buscamos en Pasos (&#8220;Steps&#8221;) la palabra &#8220;resource&#8221;, nuestro componente debe aparecer.</div>
<p>&nbsp;</p>
<div style="clear: both;text-align: center"></div>
<div style="clear: both;text-align: center"></div>
<div style="clear: both;text-align: center"></div>
<div style="clear: both;text-align: center"></div>
<div style="clear: both;text-align: center"><a style="margin-left: 1em;margin-right: 1em" href="https://www.localidata.com/wp-content/uploads/2017/07/busquedaResource.png"><img loading="lazy" src="https://www.localidata.com/wp-content/uploads/2017/07/busquedaResource-300x179.png" width="400" height="237" border="0" /></a></div>
<p>&nbsp;</p>
<div style="text-align: justify">Vamos a hacer una prueba completa para crear un recurso y actualizarlo en un portal de demos de CKAN.</div>
<p>Me he dado de alta en <a href="http://demo.ckan.org/">http://demo.ckan.org</a>:</p>
<div style="clear: both;text-align: center"><a style="margin-left: 1em;margin-right: 1em" href="https://www.localidata.com/wp-content/uploads/2017/07/alta.png"><img loading="lazy" src="https://www.localidata.com/wp-content/uploads/2017/07/alta-300x211.png" width="400" height="281" border="0" /></a></div>
<p>En la página de mi perfil he obtenido mi API-KEY:</p>
<div style="clear: both;text-align: center"><a style="margin-left: 1em;margin-right: 1em" href="https://www.localidata.com/wp-content/uploads/2017/07/apiKey.png"><img loading="lazy" src="https://www.localidata.com/wp-content/uploads/2017/07/apiKey-174x300.png" width="185" height="320" border="0" /></a></div>
<div style="text-align: justify">Ahora dentro del portal he creado el dataset &#8220;Pentaho Upload Test&#8221;: <a href="https://demo.ckan.org/dataset/pentaho-upload-test">https://demo.ckan.org/dataset/pentaho-upload-test</a></div>
<div style="text-align: justify"></div>
<div style="text-align: justify">Ya tenemos todo lo que necesitamos para hacer la primera prueba: creación de recurso.</div>
<p>Nos vamos a Pentaho y utilizamos los pasos: &#8220;Data Grid&#8221;, nuestro &#8220;CKAN Resource Upload&#8221; y los unimos.</p>
<div style="clear: both;text-align: center"><a style="margin-left: 1em;margin-right: 1em" href="https://www.localidata.com/wp-content/uploads/2017/07/steps.png"><img loading="lazy" src="https://www.localidata.com/wp-content/uploads/2017/07/steps-300x65.png" width="400" height="86" border="0" /></a></div>
<p>Después de conectarlos, añadimos en el <b>Data Grid</b> un tabla con algunos datos.</p>
<div style="clear: both;text-align: center"><a style="margin-left: 1em;margin-right: 1em" href="https://www.localidata.com/wp-content/uploads/2017/07/datos.png"><img src="https://www.localidata.com/wp-content/uploads/2017/07/datos.png" border="0" /></a></div>
<p>Ahora configuramos el <b>CKAN Resource Upload:</b></p>
<div style="clear: both;text-align: center"><a style="margin-left: 1em;margin-right: 1em" href="https://www.localidata.com/wp-content/uploads/2017/07/CkanConf1.png"><img loading="lazy" src="https://www.localidata.com/wp-content/uploads/2017/07/CkanConf1-237x300.png" width="315" height="400" border="0" /></a></div>
<p>&nbsp;</p>
<div style="text-align: justify"></div>
<div style="text-align: justify">Configuramos el <b>dominio</b>, nuestra <b>API KEY,</b> el ID de nuestro dataset en<b> Package ID</b>, el <b>título </b>del recurso y su <b>descripción</b>. No escribimos nada en <b>Resource ID</b> para que cree el recurso.</div>
<p>Ejecutamos y veremos cómo aparece el recurso <b>Gastos </b>en nuestro Dataset:</p>
<div style="clear: both;text-align: center"><a style="margin-left: 1em;margin-right: 1em" href="https://www.localidata.com/wp-content/uploads/2017/07/Prueba1.png"><img loading="lazy" src="https://www.localidata.com/wp-content/uploads/2017/07/Prueba1-300x111.png" width="400" height="146" border="0" /></a></div>
<p>Además vemos que el <b>Datapusher </b>ha hecho su trabajo y ha añadido el contenido en el <b>Datastore</b>.</p>
<p>Si ahora repetimos la prueba utilizando el Idenficador del recurso que se ha creado escribiendolo en <b>Resource ID</b>:</p>
<div style="clear: both;text-align: center"><a style="margin-left: 1em;margin-right: 1em" href="https://www.localidata.com/wp-content/uploads/2017/07/CkanConf2.png"><img loading="lazy" src="https://www.localidata.com/wp-content/uploads/2017/07/CkanConf2-300x120.png" width="320" height="127" border="0" /></a></div>
<p>Y añadimos un registro más en el <b>Data Grid</b>:</p>
<div style="clear: both;text-align: center"><a style="margin-left: 1em;margin-right: 1em" href="https://www.localidata.com/wp-content/uploads/2017/07/datos2.png"><img src="https://www.localidata.com/wp-content/uploads/2017/07/datos2.png" border="0" /></a></div>
<p>Volvemos a lanzar el proceso:</p>
<div style="clear: both;text-align: center"><a style="margin-left: 1em;margin-right: 1em" href="https://www.localidata.com/wp-content/uploads/2017/07/Prueba2.png"><img loading="lazy" src="https://www.localidata.com/wp-content/uploads/2017/07/Prueba2-300x116.png" width="400" height="155" border="0" /></a></div>
<div style="clear: both;text-align: center"></div>
<div style="clear: both;text-align: center"></div>
<p>Y vemos que se actualiza el recurso.</p>
<hr />
<p>Esperamos que el componente os sea de utilidad. Si tenéis algun problema no dudeis en escribirnos una issue en Github: <a href="https://github.com/localidata/CKAN-Resource-Updater-for-Pentaho-Data-Integration" target="_blank" rel="noopener">https://github.com/localidata/CKAN-Resource-Updater-for-Pentaho-Data-Integration</a></p>
<p>La entrada <a rel="nofollow" href="https://www.localidata.com/como-actualizar-recursos-de-ckan-a-traves-de-pentaho-data-integration/">Cómo actualizar recursos de CKAN a través de Pentaho Data Integration</a> se publicó primero en <a rel="nofollow" href="https://www.localidata.com">Localidata</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>¡Somos Pyme Innovadora!</title>
		<link>https://www.localidata.com/somos-pyme-innovadora/</link>
		
		<dc:creator><![CDATA[Juan Carlos Ballesteros]]></dc:creator>
		<pubDate>Thu, 13 Jul 2017 10:45:00 +0000</pubDate>
				<category><![CDATA[Sin categoría]]></category>
		<guid isPermaLink="false"></guid>

					<description><![CDATA[<p>Localidata ha conseguido el Sello de Pyme Innovadora, que otorga el Ministerio Economía a Pymes intensivas en I+D+I. PYME INNOVADORA Válido hasta el 30 de junio de 2020</p>
<p>La entrada <a rel="nofollow" href="https://www.localidata.com/somos-pyme-innovadora/">¡Somos Pyme Innovadora!</a> se publicó primero en <a rel="nofollow" href="https://www.localidata.com">Localidata</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Localidata ha conseguido el Sello de Pyme Innovadora, que otorga el Ministerio Economía a Pymes intensivas en I+D+I.</p>
<div style="text-align: center;width: 238px" title="Sello PYME INNOVADORA 30/06/2020">
<div>
<div style="clear: both;text-align: center"><a style="margin-left: 1em;margin-right: 1em;text-decoration: none" title="Ir a 'Sello Pyme Innovadora con validez 30/06/2020 ' en ventana nueva" href="https://sede.micinn.gob.es/pyiINFO/buscarPyi.mec?&amp;nif=B86653482" target="_blank" rel="noopener"><img src="https://sede.micinn.gob.es/pyiINFO/imagenes/sello.jpg" alt="Sello PYME INNOVADORA 30/06/2020" /></a></div>
</div>
<div style="color: black;margin-bottom: 10px;margin-top: 10px;text-decoration: none">
<div style="font-size: 16px;font-weight: bold"><a style="text-decoration: none" title="Ir a 'Sello Pyme Innovadora con validez 30/06/2020 ' en ventana nueva" href="https://sede.micinn.gob.es/pyiINFO/buscarPyi.mec?&amp;nif=B86653482" target="_blank" rel="noopener">PYME INNOVADORA</a></div>
<div style="font-size: 10px"><a style="text-decoration: none" title="Ir a 'Sello Pyme Innovadora con validez 30/06/2020 ' en ventana nueva" href="https://sede.micinn.gob.es/pyiINFO/buscarPyi.mec?&amp;nif=B86653482" target="_blank" rel="noopener">Válido hasta el 30 de junio de 2020 </a></div>
</div>
<div><a style="text-decoration: none" title="Ir a 'Sello Pyme Innovadora con validez 30/06/2020 ' en ventana nueva" href="https://sede.micinn.gob.es/pyiINFO/buscarPyi.mec?&amp;nif=B86653482" target="_blank" rel="noopener"><img src="https://sede.micinn.gob.es/pyiINFO/imagenes/escudo.jpg" alt="escudo de MEIC 30/06/2020" /></a></div>
</div>
<p>La entrada <a rel="nofollow" href="https://www.localidata.com/somos-pyme-innovadora/">¡Somos Pyme Innovadora!</a> se publicó primero en <a rel="nofollow" href="https://www.localidata.com">Localidata</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Localidata crece</title>
		<link>https://www.localidata.com/localidata-crece/</link>
		
		<dc:creator><![CDATA[Juan Carlos Ballesteros]]></dc:creator>
		<pubDate>Tue, 04 Jul 2017 11:04:00 +0000</pubDate>
				<category><![CDATA[Sin categoría]]></category>
		<guid isPermaLink="false"></guid>

					<description><![CDATA[<p>Esta semana Carlos Martinez de la Casa se ha incorporado a Localidata. En esta foto nos podéis ver a los dos en el evento de APIs de Red Hat de hoy. &#160;</p>
<p>La entrada <a rel="nofollow" href="https://www.localidata.com/localidata-crece/">Localidata crece</a> se publicó primero en <a rel="nofollow" href="https://www.localidata.com">Localidata</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Esta semana Carlos Martinez de la Casa se ha incorporado a Localidata.</p>
<p>En esta foto nos podéis ver a los dos en el evento de APIs de Red Hat de hoy.</p>
<div style="clear: both;text-align: center"><a style="margin-left: 1em;margin-right: 1em" href="https://www.localidata.com/wp-content/uploads/2017/07/nuevo.png"><img loading="lazy" src="https://www.localidata.com/wp-content/uploads/2017/07/nuevo-300x192.png" width="400" height="255" border="0" /></a></div>
<p>&nbsp;</p>
<p>La entrada <a rel="nofollow" href="https://www.localidata.com/localidata-crece/">Localidata crece</a> se publicó primero en <a rel="nofollow" href="https://www.localidata.com">Localidata</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Another choice for CKAN Maps instead of Mapquest</title>
		<link>https://www.localidata.com/another-choice-for-ckan-maps-instead-of-mapquest/</link>
		
		<dc:creator><![CDATA[Juan Carlos Ballesteros]]></dc:creator>
		<pubDate>Wed, 13 Jul 2016 10:27:00 +0000</pubDate>
				<category><![CDATA[CKAN]]></category>
		<category><![CDATA[Sin categoría]]></category>
		<guid isPermaLink="false"></guid>

					<description><![CDATA[<p>This week the visualization of maps inside of CKAN has been broken. The default provider of layers (MapQuest) has changed its policy, and we haven&#8217;t much time to react. This is an example of map with the change: To solve this, we need to change the default layer provider in the CKAN configuration file (geoview [&#8230;]</p>
<p>La entrada <a rel="nofollow" href="https://www.localidata.com/another-choice-for-ckan-maps-instead-of-mapquest/">Another choice for CKAN Maps instead of Mapquest</a> se publicó primero en <a rel="nofollow" href="https://www.localidata.com">Localidata</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This week the visualization of maps inside of CKAN has been broken.</p>
<p>The default provider of layers (MapQuest) has changed its policy, and we haven&#8217;t much time to react.</p>
<p>This is an example of map with the change:</p>
<div style="clear: both;text-align: center"></div>
<div style="clear: both;text-align: center"></div>
<div style="clear: both;text-align: center"><a style="margin-left: 1em;margin-right: 1em" href="https://www.localidata.com/wp-content/uploads/2016/07/Captura.png"><img loading="lazy" src="https://www.localidata.com/wp-content/uploads/2016/07/Captura-300x158.png" width="320" height="168" border="0" /></a></div>
<p>To solve this, we need to change the default layer provider in the CKAN configuration file (<b>geoview </b>and <b>spatial </b>plugins) and in the default viewer (<b>reclineView</b> plugin).</p>
<p>We have choose <a href="http://www.thunderforest.com/">http://www.thunderforest.com/</a>. <span lang="en">Specifically this visualization</span>: <a href="http://www.thunderforest.com/maps/neighbourhood/">http://www.thunderforest.com/maps/neighbourhood/</a></p>
<p>These are the steps to follow to do this change:</p>
<p>a) CKAN Configuration</p>
<p>In CKAN configuration file we must add these lines after the entry <b>ckan.plugins:</b></p>
<p>ckanext.spatial.common_map.type = custom<br />
ckanext.spatial.common_map.custom.url = http://tile.thunderforest.com/neighbourhood/{z}/{x}/{y}.png<br />
ckanext.spatial.common_map.attribution = Maps &amp;copy; &lt;ahref=&#8221;http://www.thunderforest.com&#8221;&gt;Thunderforest&lt;/a&gt;, Data &amp;copy; &lt;aa href=&#8221;http://www.openstreetmap.org/copyright&#8221;&gt;OpenStreetMap contributors&lt;/a&gt;</p>
<p>b) Default viewer</p>
<p>Edit the file <b>recline.js</b>, which is stored in the path:</p>
<p>/usr/lib/ckan/default/src/ckan/ckanext/reclineview/theme/public/vendor/recline/recline.js is CKAN 2.5</p>
<p>o</p>
<p>/usr/lib/ckan/default/src/ckan/ckanext/reclinepreview/theme/public/vendor/recline/recline.js in CKAN 2.2</p>
<p>In this file there are two variables with this values:</p>
<p>var mapUrl = &#8220;//otile{s}-s.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png&#8221;;<br />
var osmAttribution = &#8216;Map data &amp;copy; 2011 OpenStreetMap contributors, Tiles Courtesy of &lt;a href=&#8221;http://www.mapquest.com/&#8221; target=&#8221;_blank&#8221;&gt;MapQuest&lt;/a&gt; &lt;img src=&#8221;//developer.mapquest.com/content/osm/mq_logo.png&#8221;&gt;&#8217;;</p>
<p>We must change the two values for these:</p>
<p>mapUrl = &#8220;//tile.thunderforest.com/neighbourhood/{z}/{x}/{y}.png&#8221;;<br />
osmAttribution = &#8216;Maps &amp;copy; &lt;a href=&#8221;http://www.thunderforest.com&#8221;&gt;Thunderforest&lt;/a&gt;, Data &amp;copy; &lt;a href=&#8221;http://www.openstreetmap.org/copyright&#8221;&gt;OpenStreetMap contributors&lt;/a&gt;&#8217;;</p>
<p>c) Restart <b>Apache2 </b>and <b>Nginx</b></p>
<p>With that steps the visualization of maps will be fine again.</p>
<div style="clear: both;text-align: center"><a style="margin-left: 1em;margin-right: 1em" href="https://www.localidata.com/wp-content/uploads/2016/07/Captura2.png"><img loading="lazy" src="https://www.localidata.com/wp-content/uploads/2016/07/Captura2-228x300.png" width="243" height="320" border="0" /></a></div>
<p><span lang="en">We hope this information helps you.</span></p>
<p>La entrada <a rel="nofollow" href="https://www.localidata.com/another-choice-for-ckan-maps-instead-of-mapquest/">Another choice for CKAN Maps instead of Mapquest</a> se publicó primero en <a rel="nofollow" href="https://www.localidata.com">Localidata</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Alternativa a MapQuest en CKAN</title>
		<link>https://www.localidata.com/alternativa-a-mapquest-en-ckan/</link>
		
		<dc:creator><![CDATA[Juan Carlos Ballesteros]]></dc:creator>
		<pubDate>Wed, 13 Jul 2016 10:03:00 +0000</pubDate>
				<category><![CDATA[CKAN]]></category>
		<guid isPermaLink="false"></guid>

					<description><![CDATA[<p>Esta semana los mapas de CKAN han dejado de visualizarse. El proveedor por defecto de las capas (MapQuest) ha cambiado su política de repente y nos ha dejado poco tiempo para reaccionar. Éste es el aspecto que tienen los mapas con el cambio: Para solucionar esto, tenemos que cambiar de proveedor de capas en la [&#8230;]</p>
<p>La entrada <a rel="nofollow" href="https://www.localidata.com/alternativa-a-mapquest-en-ckan/">Alternativa a MapQuest en CKAN</a> se publicó primero en <a rel="nofollow" href="https://www.localidata.com">Localidata</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Esta semana los mapas de CKAN han dejado de visualizarse.</p>
<p>El proveedor por defecto de las capas (MapQuest) ha cambiado su política de repente y nos ha dejado poco tiempo para reaccionar.</p>
<p>Éste es el aspecto que tienen los mapas con el cambio:</p>
<div style="clear: both;text-align: center"></div>
<div style="clear: both;text-align: center"></div>
<div style="clear: both;text-align: center"><a style="margin-left: 1em;margin-right: 1em" href="https://www.localidata.com/wp-content/uploads/2016/07/Captura.png"><img loading="lazy" src="https://www.localidata.com/wp-content/uploads/2016/07/Captura-300x158.png" width="320" height="168" border="0" /></a></div>
<p>Para solucionar esto, tenemos que cambiar de proveedor de capas en la Configuración de CKAN (para los plugins <b>geoview </b>y <b>spatial</b>) y en la visualización por defecto (para el plugin <b>reclineView</b>).</p>
<p>Nosotros nos hemos cambiado a <a href="http://www.thunderforest.com/">http://www.thunderforest.com/</a>. Concretamente a esta visualización: <a href="http://www.thunderforest.com/maps/neighbourhood/">http://www.thunderforest.com/maps/neighbourhood/</a></p>
<p>Éstos son los pasos que hay que seguir:</p>
<p>a) Configuración de CKAN</p>
<p>En el fichero de configuración de CKAN añadimos estas lineas justo debajo de la entrada <b>ckan.plugins:</b></p>
<p>ckanext.spatial.common_map.type = custom<br />
ckanext.spatial.common_map.custom.url = http://tile.thunderforest.com/neighbourhood/{z}/{x}/{y}.png<br />
ckanext.spatial.common_map.attribution = Maps &amp;copy; &lt;ahref=&#8221;http://www.thunderforest.com&#8221;&gt;Thunderforest&lt;/a&gt;, Data &amp;copy; &lt;aa href=&#8221;http://www.openstreetmap.org/copyright&#8221;&gt;OpenStreetMap contributors&lt;/a&gt;</p>
<p>b) Visualización por defecto</p>
<p>Editamos el fichero <b>recline.js</b> Que se encuentra en:</p>
<p>/usr/lib/ckan/default/src/ckan/ckanext/reclineview/theme/public/vendor/recline/recline.js en CKAN 2.5</p>
<p>o</p>
<p>/usr/lib/ckan/default/src/ckan/ckanext/reclinepreview/theme/public/vendor/recline/recline.js en CKAN 2.2</p>
<p>En este fichero se crean e inicializan estas variables:</p>
<p>var mapUrl = &#8220;//otile{s}-s.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png&#8221;;<br />
var osmAttribution = &#8216;Map data &amp;copy; 2011 OpenStreetMap contributors, Tiles Courtesy of &lt;a href=&#8221;http://www.mapquest.com/&#8221; target=&#8221;_blank&#8221;&gt;MapQuest&lt;/a&gt; &lt;img src=&#8221;//developer.mapquest.com/content/osm/mq_logo.png&#8221;&gt;&#8217;;</p>
<p>Lo que tenemos que hacer es cambiar su valor por este otro:</p>
<p>mapUrl = &#8220;//tile.thunderforest.com/neighbourhood/{z}/{x}/{y}.png&#8221;;<br />
osmAttribution = &#8216;Maps &amp;copy; &lt;a href=&#8221;http://www.thunderforest.com&#8221;&gt;Thunderforest&lt;/a&gt;, Data &amp;copy; &lt;a href=&#8221;http://www.openstreetmap.org/copyright&#8221;&gt;OpenStreetMap contributors&lt;/a&gt;&#8217;;</p>
<p>c) Reiniciamos <b>Apache2 </b>y <b>Nginx</b></p>
<p>Con estos pasos todos los mapas volverán a visualizarse correctamente.</p>
<div style="clear: both;text-align: center"><a style="margin-left: 1em;margin-right: 1em" href="https://www.localidata.com/wp-content/uploads/2016/07/Captura2.png"><img loading="lazy" src="https://www.localidata.com/wp-content/uploads/2016/07/Captura2-228x300.png" width="243" height="320" border="0" /></a></div>
<p>Esperamos que estos pasos os sirvan de ayuda.</p>
<p>La entrada <a rel="nofollow" href="https://www.localidata.com/alternativa-a-mapquest-en-ckan/">Alternativa a MapQuest en CKAN</a> se publicó primero en <a rel="nofollow" href="https://www.localidata.com">Localidata</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>¿Dónde poder tomar algo en estos días de verano?</title>
		<link>https://www.localidata.com/donde-poder-tomar-algo-en-estos-dias-de-verano/</link>
		
		<dc:creator><![CDATA[Alejandro Fernandez Carrera]]></dc:creator>
		<pubDate>Tue, 28 Jul 2015 10:53:00 +0000</pubDate>
				<category><![CDATA[Alejandro F. Carrera]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Barrio]]></category>
		<category><![CDATA[CartoDB]]></category>
		<category><![CDATA[GeoJSON]]></category>
		<category><![CDATA[LocaliData]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Visualización]]></category>
		<guid isPermaLink="false"></guid>

					<description><![CDATA[<p>¿Dónde poder tomar algo en estos días de verano? En estos días tan calurosos, es bueno aprovechar las tardes y noches para salir a tomar algo o comer alguna tapa por las diferentes zonas que tiene Madrid. Es por ello que en ocasiones nos preguntamos, en qué barrio hay mayor posibilidad de encontrar algo abierto [&#8230;]</p>
<p>La entrada <a rel="nofollow" href="https://www.localidata.com/donde-poder-tomar-algo-en-estos-dias-de-verano/">¿Dónde poder tomar algo en estos días de verano?</a> se publicó primero en <a rel="nofollow" href="https://www.localidata.com">Localidata</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2 style="text-align: left"><span style="font-size: large"><span style="font-family: Arial,Helvetica,sans-serif"><i><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">¿Dónde poder tomar algo en estos días de verano?</span></i></span></span></h2>
<div style="text-align: justify">
<span style="font-family: Arial,Helvetica,sans-serif;font-size: small"><b><i><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">En estos días tan calurosos, es bueno aprovechar las tardes y noches para salir a tomar algo o comer alguna tapa por las diferentes zonas que tiene Madrid. Es por ello que en ocasiones nos preguntamos, en qué barrio hay mayor posibilidad de encontrar algo abierto para dicho fin.</span></i></b></span></div>
<div style="text-align: justify"><span style="font-size: small"><br />
</span> <span style="font-family: Arial,Helvetica,sans-serif;font-size: small"><b><i><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">Bien, el post de hoy, gracias a nuestra <a href="https://localidata.3scale.net/">API</a> nos ayudará a encontrar la mayor concentración de locales de una categoría dada, en este caso bares y restaurantes, en un barrio determinado y posteriormente visualizarlo.</span></i><i><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"><i><b> </b></i>Cabe destacar, al igual que en antiguos post, lo primero que necesitáis es solicitar vuestra </span></i><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"><b>api</b></span><i><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"><b>_key</b> para poder replicar lo que estamos haciendo aquí. ¡Empecemos!</span></i></b></span></p>
</div>
<div style="text-align: justify"><span style="font-family: Arial,Helvetica,sans-serif;font-size: small">Suponiendo que ya tenemos nuestra api_key, lo primero es buscar en el portal de desarrollador la llamada que nos permite buscar todos los barrios de Madrid:</span><span style="color: #073763"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: x-small"><span style="background-color: transparent;font-style: normal;font-variant: normal;font-weight: normal;vertical-align: baseline"> </span></span></span></span></p>
<div style="text-align: center"><a href="http://datos.localidata.com/recurso/territorio/Provincia/Madrid/Municipio/madrid/Barrio?api_key=TU_API_KEY"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"><span style="background-color: transparent;font-style: normal;font-variant: normal;font-weight: normal;vertical-align: baseline">http://datos.localidata.com/recurso/territorio/Provincia/Madrid/Municipio/madrid/Barrio?api_key=TU_API_KEY</span></span></span></a></div>
<div style="text-align: center"></div>
<div style="text-align: justify"></div>
<div style="text-align: center">
<table style="margin-left: auto;margin-right: auto;text-align: center" cellspacing="0" cellpadding="0" align="center">
<tbody>
<tr>
<td style="text-align: center"><img loading="lazy" src="https://lh3.googleusercontent.com/MTcuczljDlRb2H1fH-ViTTNaeHNI-5HArcAMUo0M8r7tsCY-tnYblvOO5XAu8Luw4DpYnWrzS3_9fcwHHk0qlVuXgUFENgehiNynSlHKDtkwfB5O3e5X1d3xgqL2IRva3jptB4E" width="520" height="345" /></td>
</tr>
<tr>
<td style="text-align: center"><span style="font-family: Arial">Petición a la API que muestra todos los barrios de Madrid</span></td>
</tr>
</tbody>
</table>
<div style="text-align: justify"></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">En segundo lugar, debemos obtener los datos representativos que necesitamos (label y representación geográfica) y para ello utilizaremos la opción _view=coordenadas. Además, usaremos la extensión .geojson para mostrarla en</span> <a href="https://www.localidata.com/ya-podeis-usar-el-geojson-generado-por-nuestra-api-para-mostrar-nuestros-datos-en-google-maps/"><span style="background-color: transparent;font-style: normal;font-variant: normal;font-weight: normal;vertical-align: baseline">Google Maps</span></a><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"> y</span><span style="color: #073763"> <span style="color: blue"><a href="https://www.localidata.com/incorporando-informacion-de-los-distritos-de-madrid-en-cartodb-i/"><span style="background-color: transparent;font-style: normal;font-variant: normal;font-weight: normal;vertical-align: baseline">CartoDB</span></a></span></span><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">, como ya hemos descrito en algunos posts anteriores.</span></span></span></div>
<p><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: x-small"><br />
</span></span></p>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: center"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"><span style="color: blue"><a href="http://datos.localidata.com/recurso/territorio/Provincia/Madrid/Municipio/madrid/Barrio.geojson?_sort=label&amp;_view=coordenadas&amp;_page=0&amp;_pageSize=50&amp;api_key=TU_API_KEY"><span style="background-color: transparent;font-style: normal;font-variant: normal;font-weight: normal;vertical-align: baseline">http://datos.localidata.com/recurso/territorio/Provincia/Madrid/Municipio/madrid/Barrio.geojson?_sort=label&amp;_view=coordenadas&amp;_page=0&amp;_pageSize=50</span><span style="background-color: transparent;font-style: normal;font-variant: normal;font-weight: normal;vertical-align: baseline">&amp;api_key=TU_API_KEY</span></a></span></span></span></div>
<p><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: x-small"><br />
</span></span></p>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">Guardaremos toda esta información en un recurso o zona donde podremos actualizarla posteriormente con el campo que nos falta. Puede ser un CSV, el propio GeoJSON con la suma de la información de todos los barrios o la programación de una variable que en memoria aloje la información en nuestro lenguaje de programación preferido.</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"><span style="color: #274e13"><span style="background-color: transparent;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"><span style="color: black">A continuación, tenemos un ejemplo en el lenguaje de programación </span><span style="color: #38761d"><b>Python </b></span><span style="color: black">para este propósito:</span></span></span></span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"> </span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="color: #38761d"><span style="background-color: transparent;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"><span style="background-color: transparent;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"># Importar librerías necesarias</span></span></span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"><span style="color: #274e13"><span style="background-color: transparent;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"><span style="color: black"> </span></span></span></span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: left"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">import requests</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: left"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">import json</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: left"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">import time</span></span></span></div>
<div style="text-align: left"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><br />
<span style="color: #38761d"><span style="background-color: transparent;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"><span style="background-color: transparent;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"># Establecer API_KEY para Localidata</span></span></span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: left"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">api_key = &#8216;TU_API_KEY&#8217;</span></span></span></div>
<div style="text-align: left"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><br />
<span style="color: #38761d"><span style="background-color: transparent;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"><span style="background-color: transparent;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"># Crear una estructura de datos compatible con GeoJSON</span></span></span></span></span><br />
<span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><br />
</span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: left"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">geojson_result_barrio = {</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: left"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">     &#8216;features&#8217;: [],</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: left"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">     &#8216;type&#8217;: &#8216;FeatureCollection&#8217;</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: left"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">}</span></span></span></div>
<div style="text-align: left"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"> </span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: left"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #38761d;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"># Código que realiza las llamadas y suma los datos de r en geojson_result_barrio.</span></span></span></div>
<div style="text-align: left"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"> </span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: left"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">b = &#8216;</span><a style="text-decoration: none" href="http://datos.localidata.com/recurso/territorio/Provincia/Madrid/Municipio/madrid/Barrio.geojson"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: underline;vertical-align: baseline">http://datos.localidata.com/recurso/territorio/Provincia/Madrid/Municipio/madrid/Barrio.geojson</span></a><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">&#8216;</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: left"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">length_barrios = [0, 1, 2]</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: left"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">for i in length_barrios:</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: left"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">      r = requests.get(b + &#8216;?_sort=label&amp;_view=coordenadas&amp;_page=&#8217; + str(i) + &#8216;&amp;_pageSize=50&amp;api_key=&#8217; + api_key)</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: left"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">      r = r.json().get(&#8216;features&#8217;)</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: left"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">      geojson_result_barrio[&#8216;features&#8217;] += r</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: left"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"> </span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: left"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">Por último, necesitaremos filtrar los locales comerciales que se encuentran en un barrio determinado y tienen en común la misma categoría:</span></span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: left"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"> </span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: center"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"><span style="color: #073763"><a href="http://datos.localidata.com/recurso/comercio/Provincia/Madrid/Municipio/madrid/Local/CNAE/Division/%3CCodCNAE%3E/Distrito/%3CCodDistrito%3E/Barrio/%3CCodBarrio%3E"><span style="background-color: transparent;font-style: normal;font-variant: normal;font-weight: normal;vertical-align: baseline">http://datos.localidata.com/recurso/comercio/Provincia/Madrid/Municipio/madrid/Local/CNAE/Division/&lt;CodCNAE&gt;/Distrito/&lt;CodDistrito&gt;/Barrio/&lt;CodBarrio&gt;</span></a></span></span></span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: center"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"> </span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">donde:</span></span></span></div>
<ul style="margin-bottom: 0pt;margin-top: 0pt">
<li style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;list-style-type: disc;text-decoration: none;vertical-align: baseline">
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">&lt;CodDistrito&gt; y &lt;CodBarrio&gt; nos delimita el barrio dónde buscar..</span></span></span></div>
</li>
<li style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;list-style-type: disc;text-decoration: none;vertical-align: baseline">
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">&lt;CodCNAE&gt; será el código de la categoría a buscar, en este ejemplo utilizaremos el código 56 que según la lista de códigos CNAE corresponde a “Servicios de comidas y bebidas”.</span></span></span></div>
</li>
</ul>
<div style="text-align: justify"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">Por ejemplo, para el barrio de Abrantes, la URL que pondríamos en nuestro navegador sería:</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"> </span></span></div>
<p><span style="font-family: Arial,Helvetica,sans-serif"><span style="color: #073763;font-size: small"><a href="http://datos.localidata.com/recurso/comercio/Provincia/Madrid/Municipio/madrid/Local/CNAE/Division/56/Distrito/11/Barrio/7?api_key=TU_API_KEY" target="_blank" rel="noopener">http://datos.localidata.com/recurso/comercio/Provincia/Madrid/Municipio/madrid/Local/CNAE/Division/56/Distrito/11/Barrio/7?api_key=TU_API_KEY</a></span></span></p>
<div style="text-align: center">
<table style="margin-left: auto;margin-right: auto;text-align: center" cellspacing="0" cellpadding="0" align="center">
<tbody>
<tr>
<td style="text-align: center"><img loading="lazy" src="https://lh3.googleusercontent.com/tbaAU92ofI9qmx2pcAfFIl0ai-goRfCI1ymxZJNPcRXcZQKO4vEZUWBdRdMBwzM33MOOA-RYHD5qcBBRiXRdsbL4GQtZZOUykLtG0yrWdQKFdp_AfkuTGq78LXqVVq7IctjEbTA" width="520" height="345" /></td>
</tr>
<tr>
<td style="text-align: center"><span style="font-family: Arial">Petición a la API que muestra bares y restaurantes en Abrantes</span></td>
</tr>
</tbody>
</table>
</div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: left"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: x-small"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"><span style="color: #073763"><span style="background-color: transparent;font-family: Arial;font-size: 12px;font-style: normal;font-variant: normal;font-weight: normal;vertical-align: baseline"> </span></span> </span></span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: left">
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">En este caso, no es necesaria la vista coordenadas, ya que no vamos a dibujar los locales comerciales, ni tampoco es necesario ceñirnos a un formato concreto, aunque es recomendable utilizar algún formato fácil de parsear. Solamente necesitamos contabilizar el número de elementos que se nos muestra por pantalla y enlazarlo con el barrio en cuestión. Por tanto utilizaremos la opción _pageSize para conseguir 50 elementos en cada petición y la _view simple.</span></span></span></div>
<p><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"><br />
<span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">A continuación podemos ver cómo introducir dicho dato en nuestra variable geojson_result_barrio que teníamos previamente en el ejemplo de <span style="color: #38761d"><b>Python </b></span>e imprimirlo en un fichero con la extensión geojson para nuestro posterior uso:</span></span></span></p>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #38761d;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"># Función sencilla para conseguir el número de elementos de una uri concreta</span></span></span></div>
<p><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><br />
</span></span></p>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: white;color: #434343;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">def get_number(uri):                             </span><span style="background-color: white;color: #38761d;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"># Le pasamos como parámetro la uri a resolver</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">      </span><span style="background-color: white;color: #434343;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">cont = 0                                           </span><span style="background-color: white;color: #38761d;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"># Contador global de elementos </span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">      </span><span style="background-color: white;color: #434343;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">page = 0                                          </span><span style="background-color: white;color: #38761d;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"># Página que estamos contabilizando</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">      </span><span style="background-color: white;color: #434343;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">opt_uri = &#8216;?_sort=label&amp;_view=simple&amp;_page=&#8217; + str(page) + &#8216;&amp;_pageSize=50&#8217;</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">      </span><span style="background-color: white;color: #434343;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">r_amp = requests.get(uri + &#8216;.json&#8217; + opt_uri + &#8216;&amp;api_key=&#8217; + api_key).json().get(&#8216;result&#8217;)</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">      </span><span style="background-color: white;color: #434343;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">cont += len(r_amp.get(&#8216;items&#8217;))         </span><span style="background-color: white;color: #38761d;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"># Sumar contador</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">      </span><span style="background-color: white;color: #434343;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">while len(r_amp.get(&#8216;items&#8217;)):           </span><span style="background-color: white;color: #38761d;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"># Iterador para todas las páginas restantes</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">            </span><span style="background-color: white;color: #434343;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">page += 1</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">            </span><span style="background-color: white;color: #434343;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">opt_uri = &#8216;?_sort=label&amp;_view=simple&amp;_page=&#8217; + str(page) + &#8216;&amp;_pageSize=50&#8217;</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">            </span><span style="background-color: white;color: #434343;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">r_amp = requests.get(uri + &#8216;.json&#8217; + opt_uri + &#8216;&amp;api_key=&#8217; + api_key).json().get(&#8216;result&#8217;)</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">            </span><span style="background-color: white;color: #434343;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">cont += len(r_amp.get(&#8216;items&#8217;))</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">      </span><span style="background-color: white;color: #434343;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">return cont                                        </span><span style="background-color: white;color: #38761d;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"># Devolver contador global de elementos</span></span></span></div>
<p><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><br />
</span></span></p>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #38761d;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"># Código para conseguir los elementos de la categoria CNAE dada en todos los barrios</span></span></span></div>
<p><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><br />
</span></span></p>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: white;color: #434343;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">pos = 0                                                        </span><span style="background-color: white;color: #38761d;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"># Barrio a buscar en la estructura de datos de Barrios</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: white;color: #434343;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">for i in geojson_result_barrio[&#8216;features&#8217;]:      </span><span style="background-color: white;color: #38761d;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"># Iterador para todos los barrios</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">      </span><span style="background-color: white;color: #434343;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">uri = i.get(&#8216;properties&#8217;).get(&#8216;_about&#8217;)        </span><span style="background-color: white;color: #38761d;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"># Conseguir la URI del barrio</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">      </span><span style="background-color: white;color: #434343;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">uri = uri.replace(                                    </span><span style="background-color: white;color: #38761d;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"># Generar nueva URI para filtrado por CNAE</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">            </span><span style="background-color: white;color: #434343;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">&#8220;http://datos.localidata.com/recurso/territorio/Provincia/Madrid/Municipio/madrid/&#8221;,</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">            </span><span style="background-color: white;color: #434343;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">&#8220;http://datos.localidata.com/recurso/comercio/Provincia/Madrid/Municipio/madrid/Local/CNAE/Division/56/&#8221;</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">      </span><span style="background-color: white;color: #434343;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">)</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">      </span><span style="background-color: white;color: #434343;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">n = get_number(uri)                               </span><span style="background-color: white;color: #38761d;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"># Conseguir elementos para la nueva URI generada</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">      </span><span style="background-color: white;color: #434343;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">geojson_result_barrio[&#8216;features&#8217;][pos][&#8216;properties&#8217;][&#8216;numberData&#8217;] = n       </span><span style="background-color: white;color: #38761d;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"># Guardar resultado</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">      </span><span style="background-color: white;color: #434343;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">pos += 1                                                 </span><span style="background-color: white;color: #38761d;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"># Siguiente barrio a revisar</span></span></span></div>
<p><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><br />
</span></span></p>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: white;color: #434343;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">with open(&#8216;barrios_number.geojson&#8217;, &#8216;w&#8217;) as data_w_file:       </span><span style="background-color: white;color: #38761d;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"># Abrir fichero en modo escritura</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="background-color: transparent;color: #666666;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">      </span><span style="background-color: white;color: #434343;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">json.dump(geojson_result_barrio, data_w_file)                </span><span style="background-color: white;color: #38761d;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"># Escribir datos en fichero</span></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">Al final obtendremos un fichero con una gran cantidad de datos (barrio y el número que nos interesa).</span></span></span></div>
<div style="text-align: justify"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"> </span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">Desde este momento podemos usarlo en nuestra herramienta de visualización preferida, para este ejemplo se ha usado CartoDB que importando el fichero generará una tabla y el mapa correspondiente de forma correcta sin modificación alguna por nuestra parte.</span></span></span></div>
<div style="text-align: justify"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"><br />
<span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">Aun así, solo nos interesaba para el ejemplo, la etiqueta o nombre del barrio, el número de locales totales que hay sin categorizar y el número que hemos sacado de las peticiones anteriores, por tanto hemos eliminado todas las columnas restantes (eran unas pocas) y este ha sido el resultado:</span></span></span></div>
<div style="text-align: justify"></div>
<div style="text-align: center">
<table style="margin-left: auto;margin-right: auto;text-align: center" cellspacing="0" cellpadding="0" align="center">
<tbody>
<tr>
<td style="text-align: center"><img loading="lazy" src="https://lh5.googleusercontent.com/EGt2E0GArRwBXV45MLblr5jNBDH0am3o-bZABzNgbPWl4khtUxa-7GW5YlVtg_LvtZc3CWfZDa4A2pMyVdD-2qmoytSnFJJ9mY2lJJOY8gp6f25St-ZCb4XSknTylNEbB8_3rzI" width="520" height="202" /></td>
</tr>
<tr>
<td style="text-align: center"><span style="font-family: Arial">Vista Tabla en CartoDB al importar el fichero GeoJSON creado</span></td>
</tr>
</tbody>
</table>
</div>
</div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: left"></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">Finalmente, en las opciones del mapa hemos elegido la opción de cloropeta (cloropeth) con el filtrado por la columna numberData para que así veamos la diferencia entre un barrio y otro de forma colorida, además de un cuadro de texto con los datos del ranking introducidos a mano para no perder más tiempo en la programación del mapa.</span></span></span></p>
<table style="margin-left: auto;margin-right: auto;text-align: center" cellspacing="0" cellpadding="0" align="center">
<tbody>
<tr>
<td style="text-align: center"><img loading="lazy" src="https://lh4.googleusercontent.com/IbenyWjqLJ22GLIqCkymRmIhk5sSv2J7qrpUJdYE57AUzkgtRUMZM7DlF20Cu-AFNyrPU1n4P3EW85acakdCHJSVMVhpsJRLBXyY1tDXNpvL8mn7OsMapI4GHXg1gMB6RplU6Uc" width="520" height="202" /></td>
</tr>
<tr>
<td style="text-align: center"><span style="font-family: Arial">Vista Mapa en CartoDB al usar cloropeta con filtro sobre numberData</span></td>
</tr>
</tbody>
</table>
<div style="text-align: center"></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">Las posibilidades como vemos son infinitas y en aproximadamente una o dos horas podemos tener una bonita visualización, ya sea con variedad en el filtrado (en vez de barrios, distritos o zonas determinadas en un bounding box) o en datos (otras categorías, unión de varias, locales de una franquicia en cuestión, etc).</span></span></span></div>
<p><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"><br />
</span></span> <span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">Link de la visualización conseguida:</span><span style="background-color: transparent;font-style: normal;font-variant: normal;font-weight: normal;vertical-align: baseline"> </span></span></span></p>
<div style="text-align: center"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"><a href="https://alejandrofcarrera.cartodb.com/viz/f876966e-32bd-11e5-a404-0e4fddd5de28/public_map"><span style="background-color: transparent;font-style: normal;font-variant: normal;font-weight: normal;vertical-align: baseline">https://alejandrofcarrera.cartodb.com/viz/f876966e-32bd-11e5-a404-0e4fddd5de28/public_map</span></a></span></span></div>
<div dir="ltr" style="line-height: 1.38;margin-bottom: 0pt;margin-top: 0pt;text-align: justify"><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline">Parece ser que el centro y algunas zonas, no son mal plan donde poder tomar algo <img src="https://s.w.org/images/core/emoji/13.0.0/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></span></span></span></div>
<p><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-size: small"><span style="background-color: transparent;color: black;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"><span style="background-color: transparent;color: black;font-family: Arial;font-size: 14.666666666666666px;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"> </span> </span></span></span></div>
<div style="text-align: justify"></div>
</div>
<p><span style="font-size: x-small"><span style="font-family: Arial,Helvetica,sans-serif"><span style="color: #0b5394"><span style="background-color: transparent;font-family: Arial;font-size: 12px;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"> </span></span> </span></span></div>
<p>&nbsp;</p>
<h2 style="text-align: left"></h2>
<h2 style="text-align: center"><b><span style="background-color: transparent;color: black;font-family: Arial;font-size: 16px;font-style: normal;font-variant: normal;font-weight: normal;text-decoration: none;vertical-align: baseline"> </span> </b></h2>
<p>La entrada <a rel="nofollow" href="https://www.localidata.com/donde-poder-tomar-algo-en-estos-dias-de-verano/">¿Dónde poder tomar algo en estos días de verano?</a> se publicó primero en <a rel="nofollow" href="https://www.localidata.com">Localidata</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Job offer / Oferta de empleo</title>
		<link>https://www.localidata.com/job-offer-oferta-de-empleo/</link>
		
		<dc:creator><![CDATA[Esther Minguela]]></dc:creator>
		<pubDate>Wed, 03 Jun 2015 09:49:00 +0000</pubDate>
				<category><![CDATA[job offer]]></category>
		<category><![CDATA[oferta de trabajo]]></category>
		<guid isPermaLink="false"></guid>

					<description><![CDATA[<p>Actualización (28-07-2015): ya hemos cubierto esta plaza. Muchas gracias a tod@s por vuestro interés. Update (28-07-2015): we´ve already covered this offer. Many thanks to everyone for your interest. Puedes elegir el idioma que prefieras para leer esta oferta. Primero está en inglés y luego en castellano. / You can choose your favourite language to read [&#8230;]</p>
<p>La entrada <a rel="nofollow" href="https://www.localidata.com/job-offer-oferta-de-empleo/">Job offer / Oferta de empleo</a> se publicó primero en <a rel="nofollow" href="https://www.localidata.com">Localidata</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="text-align: left">
<div style="clear: both;text-align: center"><a style="margin-left: 1em;margin-right: 1em" href="https://www.localidata.com/wp-content/uploads/2015/06/swissKnife.jpg"><img loading="lazy" src="https://www.localidata.com/wp-content/uploads/2015/06/swissKnife-300x300.jpg" width="200" height="200" border="0" /></a></div>
<p><span style="font-family: Arial,Helvetica,sans-serif">Actualización (28-07-2015): ya hemos cubierto esta plaza. Muchas gracias a tod@s por vuestro interés.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif">Update </span><span style="font-family: Arial,Helvetica,sans-serif"><span style="font-family: Arial,Helvetica,sans-serif">(28-07-2015)</span>: we´ve already covered this offer. Many thanks to everyone for your interest.</span></p>
<hr />
<p><span style="font-family: Arial,Helvetica,sans-serif">Puedes elegir el idioma que prefieras para leer esta oferta. Primero está en inglés y luego en castellano. / You can choose your favourite language to read this job offer: first in English and then in Spanish.</span></div>
<p>&nbsp;</p>
<hr />
<p><span style="font-family: Arial,Helvetica,sans-serif">We are looking for data lovers to join our team at <a href="https://www.localidata.com/" target="_blank" rel="noopener">Localidata</a>.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif">After a bit more than two years since we started operations, we are now expanding our team at Localidata. We are looking for two positions to fill in, but before telling you what they would consist of we would like to tell you first what it is about to work with us:</span></p>
<ul>
<li><span style="font-family: Arial,Helvetica,sans-serif">We like being a real team, and we want to continue being a team for as long as possible. </span></li>
<li><span style="font-family: Arial,Helvetica,sans-serif">We enjoy working together, discussing about the problems that we need to solve for our customers, and filling the walls of our office with drawings as a result of these discussions.</span></li>
<li><span style="font-family: Arial,Helvetica,sans-serif">We love when our customers say that they like how we work, and at least for the time being this is happening often. It is not about creating the perfect solutions that customers may not like, but making what they need in the best manner.</span></li>
<li><span style="font-family: Arial,Helvetica,sans-serif">We aim at respecting as much as possible the working hours of our employees. Not because of working long hours the results will be better. If things are done well, there is no need to work more than what would be expected in any other job.  </span></li>
</ul>
<p><span style="font-family: Arial,Helvetica,sans-serif">Are you now convinced that you want to join us? If that is the case, then continue reading. Now we tell you which are the skills that we are looking for:</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif"><b>Swiss Knife 1</b> (sorry, were you looking for the usual “frontend developer”/“backend developer” or alike?): We are looking for a person who feels happy when opening in the morning Eclipse to do some <a title="Java (programming language)" href="http://www.oracle.com/technetwork/java/" rel="homepage">Java programming</a> and setting up in the afternoon a Linux virtual machine in Amazon, who loves collaborating with others using Git, who likes HTML5, CSS3, Bootstrap, JSON and JavaScript, a bit of Python, who can deploy reliable and scalable Web applications, no matter whether they are running on a Tomcat server, on Google App Engine, on top of MongoDB&#8230;, who will not kill himself of herself if told to build a SQL-based database, and&#8230;</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif">Well, you can imagine that we may well be adding more and more frameworks and technologies here. But this is not the point. It doesn’t matter if you don’t know about all these things. What we want is somebody who is passionate about what he or she does and does not mind learning about technologies (and keeping us busy learning as well). And if you do not have much professional experience yet, don’t worry, you can apply as well.</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif"><b>Swiss Knife 2</b>: We are looking for a person who feels happy when opening in the morning Eclipse to do some Java programming and setting up in the afternoon a Linux virtual machine in Amazon, who loves collaborating with others using Git, who likes HTML5, CSS3, Bootstrap, JSON and JavaScript, a bit of Python… Don’t you feel like a déjà vu? Yes, there is some copy and paste activity here, but this is because this is what we are looking for&#8230;</span></p>
<p><span style="font-family: Arial,Helvetica,sans-serif">If you like any of these positions and you like the idea of working with us in Madrid, don’t forget to send us your CV to <a href="mailto:info@localidata.com">info@localidata.com</a>. Obviously, it will be good if you tell us everything that you are able to do, but remember to include as well a bit of why you are motivated to work with us.</span><br />
<b><br />
</b><b><span style="font-family: Arial,Helvetica,sans-serif">The Localidata team</span>.</b></p>
<p><span style="font-family: Arial,Helvetica,sans-serif">PS: And if you want us to answer even more quickly and interview you as soon as possible, you may always send us something like this (<a href="http://www.nina4airbnb.com/" target="_blank" rel="noopener">http://www.nina4airbnb.com/</a>) with ideas about what we can do with our <a href="http://datos.localidata.com/" target="_blank" rel="noopener">API</a> or with any of the services that we are currently providing for our customers, as described in our <a href="https://www.localidata.com/" target="_blank" rel="noopener">Web</a>. But don’t feel forced to do it, we also value your free time and you will have time to demonstrate what you can do.</span><br />
<span style="font-family: Arial,Helvetica,sans-serif"><br />
</span></p>
<hr />
<p><span style="font-family: Arial,Helvetica,sans-serif"><br />
</span><span style="font-family: Arial,Helvetica,sans-serif">Estamos buscando apasionados de los datos para unirse a nuestro equipo en <a href="https://www.localidata.com/" target="_blank" rel="noopener">Localidata</a>.</p>
<p>Hace poco más de dos años desde que Localidata empezó a ofrecer servicios relacionados con los datos abiertos y ahora queremos que nuestro equipo crezca. Estamos buscando a dos nuevos compañeros, pero antes de decirte en qué consiste el trabajo, te vamos a decir lo que significa trabajar con nosotros:</span></p>
<ul>
<li><span style="font-family: Arial,Helvetica,sans-serif">Somos un equipo, nos gusta trabajar así e intentamos hacerlo todo el tiempo que podemos.</span></li>
<li><span style="font-family: Arial,Helvetica,sans-serif">Nos gusta trabajar juntos, discutir de los problemas que tenemos que solucionar para nuestros clientes y pintar en las paredes de la oficina las conclusiones de nuestras reuniones.</span></li>
<li><span style="font-family: Arial,Helvetica,sans-serif">Nos encanta que nuestros clientes digan que les gusta nuestra forma de trabajar, y de momento esto nos pasa bastante a menudo. No se trata de crear la solución perfecta, sino de adaptar la solución lo máximo posible a nuestros clientes, para que tengan lo que quieren y necesitan.</span></li>
<li><span style="font-family: Arial,Helvetica,sans-serif">Respetamos todo lo que podemos nuestros horarios de trabajo. No por trabajar más horas los resultados van a ser mejores. </span></li>
</ul>
<p><span style="font-family: Arial,Helvetica,sans-serif">¿Sigues queriendo trabajar con nosotros? Si es así, sigue leyendo. Ahora te decimos qué estamos buscando:<br />
</span><br />
<span style="font-family: Arial,Helvetica,sans-serif"><b>Todoterreno 1</b> (¿esperabas &#8220;técnico de sistemas&#8221;, &#8220;programador senior&#8221; o &#8220;analista orgánico&#8221;?): estamos buscando a una persona a la que le guste empezar la mañana programando en Java con Eclipse y preparando una máquina virtual en Amazon después de comer, a la que le guste colaborar en proyectos con Git, a quien le guste HTML5, las mejoras de CSS3, que use Bootstrap, JSON y JavaScript, un poco de Python, que despliegue aplicaciones Web seguras y escalables, no importa si es con Tomcat, Google App Engine, que controle un poco de MongoDB&#8230;, que no tenga tendencias suicidas por tener que trabajar con una base de datos relacional, &#8230;</span><br />
<span style="font-family: Arial,Helvetica,sans-serif"><br />
Bueno, puedes imaginar que podemos añadir más y más frameworks y tecnologías. Pero no es el caso, no nos importa si no sabes de todo esto. Lo que queremos es alguien a quien le guste su trabajo y no le importe aprender cosas nuevas (y compartir los conocimientos con tus compañeros). Y aunque no tengas mucha experiencia, no te preocupes, no te descartaremos por eso.<br />
</span><br />
<span style="font-family: Arial,Helvetica,sans-serif"><b>Todoterreno 2</b>: estamos buscando a una persona a la que le guste empezar la mañana programando en Java con Eclipse y preparando una máquina virtual en Amazon después de comer, a la que le guste colaborar en proyectos con Git, a quien le guste HTML5, las mejoras de CSS3, que use Bootstrap, JSON y Javascript, un poco de Python,… ¿Sientes algo así como un déjà vu? No, es que hemos copiado y pegado, así que ya sabes lo que estamos buscando…</p>
<p>Si te gusta el puesto de trabajo y quieres trabajar con nosotros en Madrid, mándanos tu CV a <a href="mailto:info@localidata.com">info@localidata.com</a>. Estaría bien que nos dijeras todo lo que eres capaz de hacer, pero recuerda incluir también por qué estas motivado para trabajar con nosotros.</p>
<p><b>El equipo de Localidata.</b></p>
<p>PD: y si quieres que te contestemos lo antes posible para concertar una entrevista, puedes enviarnos algo como esto (<a href="http://www.nina4airbnb.com/" target="_blank" rel="noopener">http://www.nina4airbnb.com/</a>) o ideas sobre lo que podemos hacer con nuestra <a href="http://datos.localidata.com/" target="_blank" rel="noopener">API</a> o con cualquiera de los servicios que actualmente estamos proporcionando a nuestros clientes, como explicamos en nuestra <a href="https://www.localidata.com/" target="_blank" rel="noopener">Web</a>. No es obligatorio hacerlo, valoramos tu tiempo libre y tendrás tiempo para demostrar lo que sabes hacer.</span><br />
<span style="font-family: Arial,Helvetica,sans-serif"><br />
</span></p>
<p>La entrada <a rel="nofollow" href="https://www.localidata.com/job-offer-oferta-de-empleo/">Job offer / Oferta de empleo</a> se publicó primero en <a rel="nofollow" href="https://www.localidata.com">Localidata</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Localidata estará presente en el encuentro Aporta 2015</title>
		<link>https://www.localidata.com/localidata-estara-presente-en-el-encuentro-aporta-2015/</link>
		
		<dc:creator><![CDATA[Oscar Corcho]]></dc:creator>
		<pubDate>Wed, 25 Feb 2015 08:12:00 +0000</pubDate>
				<category><![CDATA[AENOR]]></category>
		<category><![CDATA[aporta]]></category>
		<category><![CDATA[open data]]></category>
		<category><![CDATA[Oscar Corcho]]></category>
		<category><![CDATA[red.es]]></category>
		<category><![CDATA[slideshare]]></category>
		<category><![CDATA[UNE 178301]]></category>
		<guid isPermaLink="false"></guid>

					<description><![CDATA[<p>Como cada año, el Ministerio de Industria, Energía y Turismo, el Ministerio de Hacienda y Administraciones Públicas y Red.es organizan el encuentro Aporta sobre la importancia de los datos abiertos para la sociedad. Este año se celebrará el 26 de febrero, y Oscar Corcho estará presente en una de las mesas, con su ponencia &#8220;Hablando se [&#8230;]</p>
<p>La entrada <a rel="nofollow" href="https://www.localidata.com/localidata-estara-presente-en-el-encuentro-aporta-2015/">Localidata estará presente en el encuentro Aporta 2015</a> se publicó primero en <a rel="nofollow" href="https://www.localidata.com">Localidata</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Como cada año, el <a href="http://www.minetur.gob.es/es-ES/Paginas/index.aspx">Ministerio de Industria, Energía y Turismo</a>, el <a href="http://www.seap.minhap.gob.es/index.html">Ministerio de Hacienda y Administraciones Públicas</a> y <a href="http://www.red.es/redes/">Red.es</a> organizan el encuentro <a href="http://datos.gob.es/?q=node/461335" target="_blank" rel="noopener">Aporta</a> sobre la importancia de los datos abiertos para la sociedad.</p>
<p><a style="clear: left;float: left;margin-bottom: 1em;margin-right: 1em" href="https://www.localidata.com/wp-content/uploads/2015/02/logo_ea_2015.png"><img loading="lazy" src="https://www.localidata.com/wp-content/uploads/2015/02/logo_ea_2015.png" width="320" height="145" border="0" /></a>Este año se celebrará el 26 de febrero, y <a href="https://plus.google.com/+OscarCorcho" target="_blank" rel="noopener">Oscar Corcho</a> estará presente en una de las mesas, con su ponencia &#8220;Hablando se entiende la gente&#8221; (muy pronto en nuestro canal de <a href="http://slideshare.net/localidata" target="_blank" rel="noopener">slideshare</a>). En ella hablará sobre nuestra experiencia en el desarrollo de la norma <a href="http://www.aenor.es/aenor/normas/normas/fichanorma.asp?tipo=N&amp;codigo=N0054318#.VO0E5rOG8tA" target="_blank" rel="noopener">UNE 178301</a> sobre Open Data y Smart Cities, que hemos creado junto con un grupo de ciudades, gobiernos y agencias regionales, agencias estatales y empresas.</p>
<p>También hablaremos sobre las <a href="https://www.localidata.com/normalizacion.html?lang=es" target="_blank" rel="noopener">oportunidades</a> que se abren gracias a esta norma, una de las primeras que se definen en este área en el contexto internacional, tanto para los productores de datos como para los reutilizadores.</p>
<p>La entrada <a rel="nofollow" href="https://www.localidata.com/localidata-estara-presente-en-el-encuentro-aporta-2015/">Localidata estará presente en el encuentro Aporta 2015</a> se publicó primero en <a rel="nofollow" href="https://www.localidata.com">Localidata</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>¡¡Cumplimos dos años!!</title>
		<link>https://www.localidata.com/cumplimos-dos-anos/</link>
		
		<dc:creator><![CDATA[Oscar Corcho]]></dc:creator>
		<pubDate>Tue, 10 Feb 2015 22:35:00 +0000</pubDate>
				<category><![CDATA[AENOR]]></category>
		<category><![CDATA[cumpleaños]]></category>
		<category><![CDATA[open data]]></category>
		<category><![CDATA[UNE 178301]]></category>
		<guid isPermaLink="false"></guid>

					<description><![CDATA[<p>Hola a todos, Hace mucho tiempo que no os contamos por este canal cómo usar nuestra API, o descripciones de los productos que ofrecemos. Y es que hemos estado trabajando en tantas cosas que no hemos tenido mucho tiempo de cuidar nuestro blog, la verdad&#8230; Entretanto hemos cambiado nuestra Web, como muchos de vosotros ya [&#8230;]</p>
<p>La entrada <a rel="nofollow" href="https://www.localidata.com/cumplimos-dos-anos/">¡¡Cumplimos dos años!!</a> se publicó primero en <a rel="nofollow" href="https://www.localidata.com">Localidata</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hola a todos,</p>
<p><a style="clear: left;float: left;margin-bottom: 1em;margin-right: 1em" href="https://www.localidata.com/wp-content/uploads/2015/02/IMG-20150210-WA0010.jpg"><img loading="lazy" src="https://www.localidata.com/wp-content/uploads/2015/02/IMG-20150210-WA0010.jpg" width="179" height="320" border="0" /></a>Hace mucho tiempo que no os contamos por este canal cómo usar nuestra API, o descripciones de los productos que ofrecemos. Y es que hemos estado trabajando en tantas cosas que no hemos tenido mucho tiempo de cuidar nuestro blog, la verdad&#8230;</p>
<p>Entretanto hemos cambiado nuestra <a href="https://www.localidata.com/" target="_blank" rel="noopener">Web</a>, como muchos de vosotros ya os habréis dado cuenta, y hemos refinado nuestra oferta de productos y servicios. También se ha publicado una norma <a title="Countries in International Organization for Standardization" href="http://en.wikipedia.org/wiki/Countries_in_International_Organization_for_Standardization" rel="wikipedia">AENOR</a> en la que hemos estado trabajando, sobre Open Data y Smart Cities (la <a href="http://www.aenor.es/aenor/normas/normas/fichanorma.asp?tipo=N&amp;codigo=N0054318#.VNqEZbCG_7A" target="_blank" rel="noopener">UNE 178301</a>). Y tenemos algunos nuevos clientes y estamos involucrados en algunos proyectos nuevos, que también os contaremos, poco a poco&#8230;</p>
<p>Pero ahora a lo que veníamos&#8230; <b>¡¡Hemos cumplido dos añitos!! </b>Parece que fue ayer cuando empezamos&#8230;</p>
<p>Y para celebrarlo, nada como una tarta personalizada que nos ha preparado Katy, del blog <a href="http://katyesteban.blogspot.com.es/" target="_blank" rel="noopener">Cosas de Katy</a>. Si estáis cerca de nuestra oficina durante esta semana, seguro que todavía llegáis a tiempo de probar un poquito.</p>
<p><a style="clear: right;float: right;margin-bottom: 1em;margin-left: 1em" href="https://www.localidata.com/wp-content/uploads/2015/02/IMG-20150210-WA0006.jpg"><img loading="lazy" src="https://www.localidata.com/wp-content/uploads/2015/02/IMG-20150210-WA0006.jpg" width="320" height="179" border="0" /></a></p>
<p>Gracias a todos los que habéis hecho posible que Localidata siga trabajando por y para los datos abiertos, tanto dentro como fuera de España.</p>
<p>La entrada <a rel="nofollow" href="https://www.localidata.com/cumplimos-dos-anos/">¡¡Cumplimos dos años!!</a> se publicó primero en <a rel="nofollow" href="https://www.localidata.com">Localidata</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Ya podéis utilizar nuestros datos en JSON-LD</title>
		<link>https://www.localidata.com/ya-podeis-utilizar-nuestros-datos-en-json-ld/</link>
		
		<dc:creator><![CDATA[Oscar Corcho]]></dc:creator>
		<pubDate>Thu, 29 May 2014 12:07:00 +0000</pubDate>
				<category><![CDATA[Sin categoría]]></category>
		<guid isPermaLink="false"></guid>

					<description><![CDATA[<p>Ya sabéis que estamos trabajando continuamente en facilitar el acceso a nuestra API y el uso de nuestros datos, para que podáis incorporarlos en vuestras aplicaciones. Por ejemplo, recientemente incluimos un formato como GeoJSON, del que ya hemos hablado en algunos posts previos, y que os permite mostrar fácilmente nuestros datos en varios servidores de mapas. Hoy [&#8230;]</p>
<p>La entrada <a rel="nofollow" href="https://www.localidata.com/ya-podeis-utilizar-nuestros-datos-en-json-ld/">Ya podéis utilizar nuestros datos en JSON-LD</a> se publicó primero en <a rel="nofollow" href="https://www.localidata.com">Localidata</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div dir="ltr" style="text-align: left">
<div style="text-align: justify">Ya sabéis que estamos trabajando continuamente en facilitar el acceso a nuestra API y el uso de nuestros datos, para que podáis incorporarlos en vuestras aplicaciones. Por ejemplo, recientemente incluimos un formato como <a title="GeoJSON" href="http://geojson.org/" rel="homepage">GeoJSON</a>, del que ya hemos hablado en algunos <a href="https://www.localidata.com/ya-podeis-usar-el-geojson-generado-por-nuestra-api-para-mostrar-nuestros-datos-en-google-maps/" target="_blank" rel="noopener">posts previos</a>, y que os permite mostrar fácilmente nuestros datos en varios servidores de mapas.</div>
<div style="text-align: justify"></div>
<div style="text-align: justify">Hoy tenemos una muy buena noticia para todos los que usáis nuestra API (y también para los que nos seguís y aún no os habéis registrado en nuestro <a href="http://datos.localidata.com/" target="_blank" rel="noopener">portal de desarrolladores</a>). Teniendo en cuenta el feedback que hemos recibido de algunos de vosotros, hemos decidido incluir un nuevo formato (<a href="http://json-ld.org/" target="_blank" rel="noopener">JSON-LD</a>) que os permitirá procesar <a title="JSON" href="http://json.org/" rel="homepage">JSON</a> de una manera más reutilizable, y que está siendo ya utilizado, por ejemplo, por <a href="http://schema.org/">schema.org</a>.</div>
<div style="text-align: justify"></div>
<div style="text-align: justify">Tal y como se describe en la página principal de <a href="http://json-ld.org/" target="_blank" rel="noopener">JSON-LD</a>, este formato combina la sencillez de JSON con un contexto que facilita su tratamiento, proporcionando identificadores únicos (URIs) para las propiedades que se utilizan en el documento JSON. Esto también permite transformar estos datos automáticamente a formatos como <a title="Resource Description Framework" href="http://en.wikipedia.org/wiki/Resource_Description_Framework" rel="wikipedia">RDF</a> (que ya sabéis que también os proporcionamos en nuestra API de manera nativa).</div>
<div style="text-align: justify"></div>
<div style="text-align: justify">Aquí tenéis un ejemplo de una salida en JSON-LD, para la siguiente URI:</div>
<div style="text-align: justify"><a href="http://datos.localidata.com/recurso/comercio/Provincia/Madrid/Municipio/madrid/Local/11007335L10.jsonld">http://datos.localidata.com/recurso/comercio/Provincia/Madrid/Municipio/madrid/Local/11007335L10.jsonld</a></div>
</div>
<p><code>{<br />
"@graph" : [ {<br />
"@id" : "http://datos.localidata.com/recurso/comercio/Provincia/Madrid/Municipio/madrid/Local/11007335L10",<br />
"localidata:direccionComercial" : "CALLE ABADA, 2, MADRID, ESPAÑA",<br />
"rdfs:label" : "BELLAS ARTES BAZAR"<br />
}, {<br />
"@id" : "http://datos.localidata.com/recurso/comercio/Provincia/Madrid/Municipio/madrid/Local/11007335L10.rdf?_sort=label",<br />
"os:itemsPerPage" : {<br />
"@type" : "xsd:long",<br />
"@value" : "10"<br />
},<br />
"os:startIndex" : {<br />
"@type" : "xsd:long",<br />
"@value" : "1"<br />
},<br />
"items" : {<br />
"@list" : [ "http://datos.localidata.com/recurso/comercio/Provincia/Madrid/Municipio/madrid/Local/11007335L10" ]<br />
},<br />
"api:page" : {<br />
"@type" : "xsd:long",<br />
"@value" : "0"<br />
},<br />
"xhv:first" : {<br />
"@id" : "http://datos.localidata.com/recurso/comercio/Provincia/Madrid/Municipio/madrid/Local/11007335L10.rdf?_sort=label&amp;_page=0"<br />
}<br />
} ],<br />
"@context" : {<br />
"direccionComercial" : {<br />
"@id" : "http://datos.localidata.com/def/City#direccionComercial",<br />
"@type" : "@id"<br />
},<br />
"label" : {<br />
"@id" : "http://www.w3.org/2000/01/rdf-schema#label",<br />
"@type" : "@id"<br />
},<br />
"rest" : {<br />
"@id" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest",<br />
"@type" : "@id"<br />
},<br />
"first" : {<br />
"@id" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#first",<br />
"@type" : "@id"<br />
},<br />
"itemsPerPage" : {<br />
"@id" : "http://a9.com/-/spec/opensearch/1.1/itemsPerPage",<br />
"@type" : "@id"<br />
},<br />
"startIndex" : {<br />
"@id" : "http://a9.com/-/spec/opensearch/1.1/startIndex",<br />
"@type" : "@id"<br />
},<br />
"items" : {<br />
"@id" : "http://purl.org/linked-data/api/vocab#items",<br />
"@type" : "@id"<br />
},<br />
"page" : {<br />
"@id" : "http://purl.org/linked-data/api/vocab#page",<br />
"@type" : "@id"<br />
},<br />
"rdfs" : "http://www.w3.org/2000/01/rdf-schema#",<br />
"os" : "http://a9.com/-/spec/opensearch/1.1/",<br />
"localidata" : "http://datos.localidata.com/def/City#",<br />
"dct" : "http://purl.org/dc/terms/",<br />
"xsd" : "http://www.w3.org/2001/XMLSchema#",<br />
"rdf" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#",<br />
"api" : "http://purl.org/linked-data/api/vocab#",<br />
"xhv" : "http://www.w3.org/1999/xhtml/vocab#"<br />
}<br />
} </code></p>
<div style="text-align: justify">Por supuesto, siempre podéis utilizar nuestra API desde la línea de comandos, y hacer la siguiente petición:</div>
<div>curl -H &#8220;Accept:application/ld+json&#8221; http://datos.localidata.com/recurso/comercio/Provincia/Madrid/Municipio/madrid/Local/11007335L10?api_key=&lt;&lt;API_KEY&gt;&gt;</div>
<div style="text-align: justify">En alguno de nuestros próximos posts os contaremos con más detalle cómo podéis explotar al máximo este formato. De momento, os recomendamos ir probando&#8230;</div>
<p>La entrada <a rel="nofollow" href="https://www.localidata.com/ya-podeis-utilizar-nuestros-datos-en-json-ld/">Ya podéis utilizar nuestros datos en JSON-LD</a> se publicó primero en <a rel="nofollow" href="https://www.localidata.com">Localidata</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
